#!/usr/bin/env python
# @FileName :lianxi1.py
# @Time :2024/1/14 11:47
# @Author :qiqianxu

cnt = 0
str1 = input('请输入一串字符：')
for i in str1:
    if i == 'a':
        cnt += 1

print(cnt)
